<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="/res/front/css/sytle/user-css/user_message.css" />
<!-- <link rel="stylesheet" href="/res/front/css/sytle/jquery-ui-css/jquery-ui.css" />
<script type="text/javascript" src="/res/front/js/js/jquery-1.5.1.js"></script>
<script type="text/javascript" src="/res/front/js/js/jquery-ui-1.8.11.js"></script>
<script type="text/javascript" src="/res/front/js/js/jquery.validate.js"></script> -->
<#include "/front/head.html"/>
<script type="text/javascript">
	function wrajax(){
		$.post(
				'${base}/member/o_twidrappSave.jspx',
				$('#wrForm').serialize(),
				function(msg){
						alert(msg);
					$("#dialog_pwd").dialog ("close");
					$("#wrForm input").val('');
				}
			)
	}
	
	$(function() {
		$( "#dialog_withdraw" ).dialog({
			autoOpen: false,
			modal: true,
			show: "blind",
			hide: "explode",
			width: 580,
			height: 380,
			buttons : {
		    "提交" : function (){
		    	wrajax();
				},
			"关闭" : function (){
				$("#dialog_withdraw").dialog ("close");}}
		});
		$( "#open_withdraw" ).click(function() {
			$( "#dialog_withdraw" ).dialog( "open" );
			return false;
		});
	});
</script>
<title>账户中心 - ${title}</title>
</head>
<!---------- 个人账户信息\ROOT\WEB-INF\front\member\accountInfo.html ---------->
<body>
	<!-- 头部 header.html -->
    	<#include "/front/common/header.html"/>
        <!-- 中部 -->
		<div class="memeber_middle">
        	<div class="member_location_div">
            	<span>
                    <b><a href="/index.jspx">首页</a></b>&nbsp;>
                    <b>资金管理</b>&nbsp;>
                    <b>资产账户信息</b>
                </span>
            </div>
        	<div class="memeber_record_centre">
                <!-- 左边目录 -->
                <div class="memeber_left_nav_div">
                    <#include "会员中心页_导航.html"/>
                </div>
                <!-- 右边目录明细 -->
                <div class="fund_middle_right_detail_div">
                    <!-- 账户金额div -->
                    <div class="fund_top_div">
                        <div class="fund_top_left">
                            <div class="fund_photo">
                            	<#if entity.tmember.headurl??>
                            		<img src="${tmember.headurl}" id="preImg0" onerror="this.src='/res/front/img/imagesForFront/portrait.jpg'" border="0" width="120" height="150" />
                        		<#else>
                            		<img src="/res/front/img/imagesForFront/portrait.jpg" id="preImg0" border="0" width="120" height="150" />
                        		</#if>
                         	</div>
                        </div>
                        <div class="fund_top_right">
                            <ul>
                                <li class="fund_tex_li1">
                                    <span style="margin-left:37px;">账户：</span>
                                    <span style="width:220px; margin-right:20px;">${entity.tmember.loginname!}</span>
                                    <span>信用等级：<span style="position: relative;top:10px;"><img src="${base}/res/front/img/imagesForFront/${entity.tmember.tmembercredits[0].creditrating}.png" width="32" height="31" border="0" /></span></span>
                                </li>
                                <li class="fund_tex_li2">
                                    <span>账户余额：</span>
                                    <span style="width:220px; color:#da8b15;">
                                    	${((entity.balance!0)+(entity.amountfrozen!0))?string.currency}<em>元</em>
                                    </span>
                                    <span style="margin-left:23px;"><b><a href="${base}/member/rechargeInit.jspx" target="block;">充值</a></b></span>
                                    <span><b><a href="" id="open_withdraw">提现</a></b></span>
                                </li>
                                <li class="fund_tex_li3">
                                    <span>可用金额：</span>
                                    <span style="color:#da8b15;">${(entity.balance!0)?string.currency}<em>元</em></span>
                                </li>
                                <li class="fund_tex_li3">
                                    <span>冻结金额：</span>
                                    <span style="color:#F00;">${(entity.amountfrozen!0)?string.currency}<em>元</em></span>
                                </li>
                                
                                <li class="fund_tex_li3">
                                    <span>冻结理由：</span>
                                    <span>${entity.afreason!}</span>
                                </li>
                                <li class="fund_tex_li4">
                                    <span style="margin-left:18px;">余额贷：</span>
                                    <span style="width:220px; color:#da8b15;">${(yedtotal!0)?string.currency}<em>元</em></span>
                                    <span class="span_1"><a href="/member/v_tfinanceinfoYEDList.jspx"><b>转入</b></a></span>
                                    <span class="span_1"><a href="${base}/member/v_ttenderrecordList.jspx"><b>转出</b></a></span>
                                    <span class="span_1"><a href="${base}/member/v_ttenderrecordList.jspx"><b>管理</b></a></span>
                                    <span class="span_1">
                                    	累计收益：<a href="/member/v_tmemberassetaccountdetailsList.jspx?trantype=28&borrowing=1" target="_blank">${(yedincome!0)?string.currency}</a>  元[<a href="/help/helpbalance.jspx" target="_new">?</a>]
                                    </span>
                                </li>
                            </ul>
                            <div id="dialog_withdraw" title="提现申请">
                                <div style="width:550px; font-family:'微软雅黑'; font-size:16px; text-align:center; margin-top:25px;">
                                    <form action="" method="post" id="wrForm">
                                        <p style="margin-bottom: 5px;color:gray;">提现申请将会在1~3个工作日内处理完毕</p>
                    						<p style="margin-bottom: 5px;color:gray;">当前账户可用金额:<span style="color:#da8b15;">${(entity.balance!0)?string.currency}</span>元</p>
											<p style="margin-bottom: 5px;color:gray;">截止到今天, 您的待付充值手续费为:<span style="color:#da8b15;">${rechrageFee?string.currency}</span>元</p>
                    						<p style="margin-bottom: 5px;color:gray;">提现业务将由第三方支付平台额外收取<span style="color:#da8b15;">3</span>元/笔提现手续费</p>
                    						<#if (entity.balance<=3)>
                    						<p style="margin-bottom: 5px;color:gray;">当前账户可提现金额:<span style="color:#da8b15;">${0?string.currency}</span>元</p>
                    						<#else>
                    						<p style="margin-bottom: 5px;color:gray;">当前账户可提现金额:<span style="color:#da8b15;">${((entity.balance!0)-(3+rechrageFee))?string.currency}</span>元</p>
                    						</#if>
                                        <div style="margin-top:10px;">
                                            <span style="margin-right:10px;">
                                                提现金额：
                                            </span>
                                            <input type="text" id="" name="wdam" class="" />
                                        </div>
                                        <div  style="margin-top:10px;"> 
                                            <span style="margin-right:10px;">
                                                提现密码：
                                            </span>
                                            <input type="password" id="" name="tmember.withdrawpassword" class="" />
                                        </div>
                                    </form>
                                    <div style="margin-top:20px; text-align:center;">
                                        <a href="${base}/member/v_tmemberToSecurity.jspx" style="color:#fe9900;">修改提现密码</a><br/><br/>
                                        <a href="${base}/member/v_tmemberbankcardList.jspx" style="color:#fe9900;">修改银行卡信息</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style="clear:both;"></div>
                    </div>
                    <!-- 账户净资产div -->
                    <div class="fund_bottom_div">
                        <div class="fund_bottom_center">
                        	<div class="fund_bottom_totalAssets">
                            	<span>账户总资产</span>
                                <span>投资资产</span>
                                <span>融资负债</span>
                                <span>可用金额</span>
                                <span>冻结金额</span>
                            </div>
                            <div class="fund_bottom_calculate">
                            	<ul>
                                	<li class="calculate_li" title="${((entity.balance!0)+(entity.amountfrozen!0)+(asset!0)+(borrow!0))?string.currency}元">
                                    	${((entity.balance!0)+(entity.amountfrozen!0)+(asset!0)-(borrow!0)+(yedtotal!0))?string.currency}元
                                    </li>
                                    <li class="margin_li">=</li>
                                    <li class="calculate_li" title="${(asset!0)?string.currency}元">
                                    	${((asset!0)+(yedtotal!0))?string.currency}元
                                    </li>
                                    <li class="margin_li">+</li>
                                    <li class="calculate_li" style="color:#F00;" title="${(borrow!0)?string.currency}元">
                                    	-${(borrow!0)?string.currency}元
                                    </li>
                                    <li class="margin_li">+</li>
                                    <li class="calculate_li" title="${(entity.balance!0)?string.currency}元">
                                    	${(entity.balance!0)?string.currency}元
                                    </li>
                                    <li class="margin_li">+</li>
                                    <li class="calculate_li" title="${(entity.amountfrozen!0)?string.currency}元">
                                    	${(entity.amountfrozen!0)?string.currency}元
                                    </li>
                                    <li style="clear:both;"></li>
                                </ul>
                            </div>
                            <div class="invest_user">
                                <span style="color:#ff9a00; margin-right:30px;">投资账户</span>
                                <span>已赚总金额<span style="color: rgb(218, 139, 21);">${((income!0)+(yedincome!0))?string.currency}元</span></span>
                            </div>
                            <div class="fund_invest_header">
                                <span style="width:128px;">投资方式</span>
                                <span style="width:150px;">账户资产</span>
                                <span style="width:150px;">已赚金额</span>
                                <span style="width:145px;">加权平均收益率</span>
                                <span style="width:140px;">持有数量</span>
                            </div>
                            <div class="fund_invest_list">
                            	<ul>
                                	<li class="fuList_li_1">投资标的</li>
                                    <li class="fuList_li_2">${(asset!0)?string.currency}元</li>
                                    <li class="fuList_li_3">${(income!0)?string.currency}元</li>
                                    <li class="fuList_li_4">#{(npa!*100); m2M2}%</li>
                                    <li class="fuList_li_5">${nCount!0}</li>
                                    <li class="fuList_li_6"><a href="${base}/member/v_ttenderrecordList.jspx" style="color:#ff9a00;">查看</a></li>
                                    <li style="clear:both;"></li>
                                </ul>
                                
                            </div>
                            <div class="fund_invest_list">
                           		 <ul>
                                	<li class="fuList_li_1">余额贷</li>
                                    <li class="fuList_li_2">${(yedtotal!0)?string.currency}元</li>
                                    <li class="fuList_li_3">${(yedincome!0)?string.currency}元</li>
                                    <li class="fuList_li_4">#{(yednpa!*100); m2M2}%</li>
                                    <li class="fuList_li_5">${yednCount!0}</li>
                                    <li class="fuList_li_6"><a href="${base}/member/v_ttenderrecordList.jspx" style="color:#ff9a00;">查看</a></li>
                                    <li style="clear:both;"></li>
                                </ul>
                            </div>
                            <div class="financing_user">融资账户</div>
                            <div class="fund_financing_header">
                            	<span style="width:170px;">借款标题</span>
                                <span style="width:200px;">下期待还本金</span>
                                <span style="width:200px;">下期待还利息/管理费</span>
                                <span style="width:170px;">逾期费用</span>
                            </div>
                            <#list financeList as f>
                                <#if (f_index>=3)>
                                	<#break>
                                </#if>
                                    <div class="fund_financing_list">
                                        <ul>
                                            <li class="fuList_li_7">${f.financekey!}</li>
                                            <li class="fuList_li_8">${(f.subpri!0)?string.currency}</li>
                                            <li class="fuList_li_9">${(f.alino!0)?string.currency}/${(f.mftba!0)?string.currency}</li>
                                            <li class="fuList_li_10">0</li>
                                            <li style="clear:both;"></li> 
                                        </ul>
                                    </div>
                    		</#list>
                        </div>
                        
                    
                    </div>
                </div>
                <div style="clear:both;"></div>
            </div>
        </div>
        <!-- 底部 footer.html -->
    	<#include "/front/common/footer.html"/>
    </div>
</body>
</html>
